package com.hyq.learn.api.rest;

import com.hyq.learn.api.service.RetryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.net.SocketTimeoutException;

/**
 * @author heyuqin
 * @date 2025/11/17 17:06
 */
@RestController("retry")
public class RetryController {

    @Autowired
    private RetryService retryService;

    @PostMapping("test")
    public void retry(@RequestParam("tag") String tag) throws SocketTimeoutException {
        retryService.testRetry(tag);
    }
}
